package org.monster.context.core.communicator;

import org.monster.context.core.headerfilter.HeaderFilterChain;
import org.monster.context.core.parameter.HttpResponse;
import org.monster.context.core.request.HttpRequest;

/**
 * dos头
 */
public class DosHeader extends Header {

    /**
     * @param name  名称
     * @param value 值
     */
    public DosHeader(String name, String value) {
        super(name, value);
    }

    /**
     * 处理头
     * 过滤处理Dos的Header信息
     *
     * @param request  请求
     * @param response 响应
     * @param chain    通道
     */
    @Override
    public void doHeaderFilter(HttpRequest request, HttpResponse response,
                               HeaderFilterChain chain) {
        chain.doHeaderFilter(request, response, chain);
    }
}
